package com.sina.finance.api.framework.service;

/**
 * Created by cuiyong on 15/9/2.
 */
public interface AppKeyAndSecretService {
    /**
     * 验证appKey是否存在
     * @param appKey 需要被验证的appKey
     * @return 如果存在返回true, 否则返回false
     */
    boolean isAppKeyExist(String appKey);

    /**
     * 获取appKey对应的secret
     * @param appKey
     * @return appKey对应的secret
     */
    String getSecret(String appKey);

    String findAllPermissions(String appKey);
}
